package com.danielepelagatti.utils
{
	import mx.controls.Alert;
	import flash.display.Sprite;
	
	/**
	 * 
	 * @author redde
	 * 
	 */	
	public class SmartAlert
	{
		/**
		* 
		*/		
		public static var DIALOG_INFORMATION:String 	= "information";
		/**
		* 
		*/		
		public static var DIALOG_ERROR:String 			= "error";
		/**
		* 
		*/		
		public static var DIALOG_WARNING:String 		= "warning";
		/**
		 * 
		 * @param dialog_type
		 * 
		 */		
		public static function show(text:String,type:String,flags:uint=4,parent:Sprite=null,closeHandler:Function=null,defaultButtonFlag:uint=4):Alert
		{
			return Alert.show(text,type,flags,parent,closeHandler,IconGetter.getCommonIcon(type),defaultButtonFlag);
		}
	}
}